<!-- 模板 -->
<template>
  <div class="root">
    <div class="order">
      <div class="items" v-for="item in order" :key="item.id">
        <div class="shool">
          <div class="name">
            <div>{{ item.name }}</div>
            <i class="iconfont icon-right"></i>
          </div>
          <div class="state">{{ item.state }}</div>
        </div>
        <div class="des">
          <div class="img">
            <img :src="item.img" alt="" />
          </div>
          <div class="text">
            <div class="dess">{{ item.des }}</div>
            <div class="tag">{{ item.tag }}</div>
            <div class="bottom">
              <div class="sprice">
                <div class="price">￥{{ item.price }}.00</div>
                <div class="oriPrice">￥{{ item.oriPrice }}.00</div>
              </div>
              <div class="look" @click="toComp('/detail')">查看详情</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
// import request from '../utils/request.js'
import img1 from '../assets/img/cate-course.png'
import img3 from '../assets/img/cate-course3.png'
import img2 from '../assets/img/cate-course2.png'

export default {
  name: '',
  data() {
    return {
      order: [
        {
          id: 1,
          name: '武当山教育机构',
          des: '零基础学书法字-米提行书',
          tag: '快速练习书法',
          state: '报名成功',
          price: 388.0,
          oriPrice: 400.0,
          img: img1,
        },
        {
          id: 2,
          name: '杜伊教育',
          des: '零基础学书法字-米提行书',
          tag: '快速练习书法',
          state: '报名成功',
          price: 388.0,
          oriPrice: 400.0,
          img: img3,
        },
        {
          id: 3,
          name: '木子可教育机构',
          des: '零基础学书法字-米提行书',
          tag: '快速练习书法',
          state: '报名成功',
          price: 388.0,
          oriPrice: 400.0,
          img: img2,
        },
        {
          id: 4,
          name: '百亿慧教育机构',
          des: '零基础学书法字-米提行书',
          tag: '快速练习书法',
          state: '报名成功',
          price: 388.0,
          oriPrice: 400.0,
          img: img1,
        },
        {
          id: 5,
          name: '武当山教育机构',
          des: '零基础学书法字-米提行书',
          tag: '快速练习书法',
          state: '报名成功',
          price: 388.0,
          oriPrice: 400.0,
          img: img2,
        },
        {
          id: 6,
          name: '武当山教育机构',
          des: '零基础学书法字-米提行书',
          tag: '快速练习书法',
          state: '报名成功',
          price: 388.0,
          oriPrice: 400.0,
          img: img2,
        },
        {
          id: 7,
          name: '武当山教育机构',
          des: '零基础学书法字-米提行书',
          tag: '快速练习书法',
          state: '报名成功',
          price: 388.0,
          oriPrice: 400.0,
          img: img2,
        },
      ],
    }
  },
  props: [],
  components: {},
  computed: {},
  filters: {},
  methods: {
    toComp(path) {
      this.$router.push(path)
    },
  },
  created() {},
  mounted() {},
}
</script>
<style lang="less" scoped>
// @import url(); 引入公共css类
.root {
  .order {
    color: #333;
    font-size: 0.28rem;
    .items {
      padding: 0.2rem;
      background-color: #fff;
      margin-bottom: 0.2rem;
      .shool {
        display: flex;
        margin-bottom: 0.1rem;
        justify-content: space-between;
        .name {
          align-items: center;
          display: flex;
          font-size: 0.32rem;
          color: #333;
          i {
            color: #999;
            margin-left: 0.1rem;
          }
        }
      }
      .des {
        width: 100%;
        display: flex;
        .img {
          width: 30%;
          img {
            width: 100%;
          }
        }
        .text {
          width: 70%;
          margin-left: 0.2rem;
          .dess {
          }
          .tag {
            font-size: 0.24rem;
            color: #999;
          }
          .bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            .price {
              color: #fc1e1e;
            }
            .sprice {
              display: flex;
            }
            .oriPrice {
              color: #666;
              text-decoration: line-through;
            }
            .look {
              background-color: #fe231d;
              color: #fff;
              font-size: 0.24rem;
              transform: scale(0.9);
              padding: 0.1rem;
              border-radius: 0.1rem;
              justify-self: right;
            }
          }
        }
      }
    }
  }
}
</style>
